package com.weiyuwqj.api.model.convert;

/**
 * Created by Administrator on 2016/3/25.
 */
public class CouponWayConvert extends DefaultConvert{
    @Override
    public Object convert(Object val) {
        if(val == null)return "";
        String way = (String)val;
        if(way.equals("register")){
            return "注册";
        }else if(way.equals("firstRecharge")){
            return "首次充值";
        }else if (way.equals("invite")) {
            return "邀请";
        }else if (way.equals("realname")) {
            return "实名认证";
        }else{
            return way;
        }

    }

}
